package com.course.common.model.pojo;

import com.course.common.model.base.BaseModel;

/**
 * @PROJECT_NAME: course
 * @DESCRIPTION: 代金券订单信息
 * @Author: 涂玄武
 * @DATE: 2021/6/25 9:41
 */
public class VoucherOrders extends BaseModel {

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 代金券
     */
    private Integer fkVoucherId;

    /**
     * 下单用户
     */
    private Integer fkDinerId;

    /**
     * 生成qrcode
     */
    private String qucode;

    /**
     * 支付方式 0-微信支付 1-支付宝
     */
    private int payment;

    /**
     * 订单状态 -1-已取消 0-未支付 1-已支付 2-已消费 3-已过期
     */
    private int status;

    /**
     * 订单类型 0-正常订单 1-抢购订单
     */
    private int orderType;

    /**
     * 抢购订单的外键
     */
    private int fkSeckillId;

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getFkVoucherId() {
        return fkVoucherId;
    }

    public void setFkVoucherId(Integer fkVoucherId) {
        this.fkVoucherId = fkVoucherId;
    }

    public Integer getFkDinerId() {
        return fkDinerId;
    }

    public void setFkDinerId(Integer fkDinerId) {
        this.fkDinerId = fkDinerId;
    }

    public String getQucode() {
        return qucode;
    }

    public void setQucode(String qucode) {
        this.qucode = qucode;
    }

    public int getPayment() {
        return payment;
    }

    public void setPayment(int payment) {
        this.payment = payment;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public int getFkSeckillId() {
        return fkSeckillId;
    }

    public void setFkSeckillId(int fkSeckillId) {
        this.fkSeckillId = fkSeckillId;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("VoucherOrders{");
        sb.append("orderNo='").append(orderNo).append('\'');
        sb.append(", fkVoucherId=").append(fkVoucherId);
        sb.append(", fkDinerId=").append(fkDinerId);
        sb.append(", qucode='").append(qucode).append('\'');
        sb.append(", payment=").append(payment);
        sb.append(", status=").append(status);
        sb.append(", orderType=").append(orderType);
        sb.append(", fkSeckillId=").append(fkSeckillId);
        sb.append('}');
        return sb.toString();
    }
}
